package com.xishu.service;

import com.xishu.entity.activity.Activity;

public class ActivityService {

    private static ActivityService instantce = new ActivityService();
    private CommonService commonService = CommonService.getInstance();

    private ActivityService(){

    }
    public static ActivityService getInstance(){
        return instantce;
    }

    public Activity searchActivityById(Long activityId) throws Exception {
        Activity entity = commonService.findEntity(activityId, Activity.class);
        return entity;
    }
}
